import request from '@/utils/request.js'
/**
 *
 * @param {角色设置新增和修改} params
 */
export function addOrUpdateRole (params) {
  return request({
    url: '/systemanage/systemRole/addOrUpdateRole',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

/**
 *
 * @param {角色列表} params
 */
export function roleList (params) {
  return request({
    url: '/systemanage/systemRole/roleList',
    method: 'post',
    data: JSON.stringify(params),
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
/**
 *
 * @param {角色设置删除} params
 */
export function deleteMenu (params) {
  return request({
    url: '/systemanage/systemRole/deleteMenu',
    method: 'post',
    params
  })
}
/**
 *
 * @param {角色设置详情查看} params
 */
export function roleDetails (params) {
  return request({
    url: '/systemanage/systemRole/roleDetails',
    method: 'post',
    params
  })
}
